import request from '@/utils/request'

// llx--0
// 用户登录
export function userLogin(data) {
  return request({
    url: 'back/manager/login',
    method: 'post',
    data
  })
}

// 退出登录
export function logout() {
  return request({
    url: '/back/manager/logout',
    method: 'get'
  })
}

// 修改密码
export function updatePassword(data) {
  return request({
    method: 'put',
    data,
    url: '/back/manager/updatePwd'
  })
}

export function getUserInfo() {
  return request({
    url: 'back/manager/get',
    method: 'get'
  })
}
